package top.yoahh.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 系统管理-用户基础信息表
 * </p>
 *
 * @author hjx
 * @since 2022-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysUser对象", description="系统管理-用户基础信息表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**主键ID*/
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**账号*/
    @ApiModelProperty(value = "账号")
    private String username;

    /**登录密码*/
    @ApiModelProperty(value = "登录密码")
    private String password;

    /**昵称*/
    @ApiModelProperty(value = "昵称")
    private String nickName;

    /**性别 0:男 1:女*/
    @ApiModelProperty(value = "性别 0:男 1:女")
    private String sex;

    /**手机号码*/
    @ApiModelProperty(value = "手机号码")
    private String phone;

    /**邮箱*/
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**头像*/
    @ApiModelProperty(value = "头像")
    private String avatar;

    /**状态*/
    @ApiModelProperty(value = "状态")
    private String status;

    /**盐值*/
    @ApiModelProperty(value = "盐值")
    private String salt;

    /**创建时间*/
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String creator;

    /**修改时间*/
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    /**修改人*/
    @ApiModelProperty(value = "修改人")
    private String modifier;

    /**逻辑删除（1：已删除，0：未删除）*/
    @ApiModelProperty(value = "逻辑删除（1：已删除，0：未删除）")
    private Boolean flag;


}
